<template>
	<view class="box">
		<view>父组件</view>
		<sonComponent></sonComponent>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				num:1
			}
		},
		onLoad(e) {
			console.log('onLoad页面加载',this.$data)
		},
		onShow() {
			console.log('onShow页面显示',this.$data)
		},
		onReady() {
			console.log('onReady页面初次显示',this.$data)
		},
		onHide() {
			console.log('onHide页面隐藏',this.$data)
		},
		onUnload() {
			console.log('onUnload页面卸载',this.$data)
		},
		onBackPress() {
			console.log('onBackPress页面返回...',this.$data)
		},
		onReachBottom() {
			console.log('onReachBottom触底加载...')
		},
		onPageScroll() {
			console.log('onPageScroll页面滚动...')
		},
		onPullDownRefresh() {
			console.log('onPullDownRefresh下拉刷新...')
			uni.stopPullDownRefresh();
		},
		methods: {

		}
	}
</script>

<style scoped>
 .box{
	 height: 110vh;
	 background-color: #4CD964;
	 color: #FFFFFF;
	 font-weight: bold;
 }
</style>
